﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HeresyManager.Comunication
{
    public class RoleDice : Comunicator
    {
        private IDice dice;
        public int Value { get; set; }

        public RoleDice(String purposer, IDice dice)
        {
            this.dice = dice;
            Value = -1;

            this.Purposer = purposer;
        }

        #region IRandamDice Members

        public override bool IsRandomSupported { get { return true; } }

        public override IDice Dice
        {
            get { return dice; }
        }

        public override void Random()
        {
            this.Value = Dice.Roll();
        }

        #endregion

        public string Purposer { get; private set; }
    }
}
